<?php 
Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl.'/js/combobox.js');
Yii::app()->clientScript->registerScriptFile (Yii::app()->baseUrl.'/js/ajaxInterRates.js');
?>
<div class="text">
  <p class="p10b"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tt_inter.png"/></p>
  <div>	        
	        <?php echo CHtml::beginForm(); ?>
	        <!--  start widget -->
	        <div class="combobox" id="cb">
              <input type="text" name="comboboxfieldname" id="cb_identifier">
              <span></span>
              <div class="dropdownlist">
                 <?php 
                 
                 $list = Rates::getInterRate();
                 foreach($list as $i => $item): ?>
                 	<a rel="<?php echo $i; ?>" <?php echo ($ii == $i) ? 'class="light"': ''; ?>><?php echo $item->ToCountry; ?></a>
                 <?php endforeach; ?>
              </div>
            </div>
            <br class="cb" />
            <div class="m10t box_bat">
	            <span class="font20"><strong>From</strong></span><span class="font57"> <strong id="inter_rates"><?php echo $list[$ii]->LocalRate; ?> </strong></span> <span class="font27">¢/</span><span class="font20"><strong>min</strong></span>
	        </div>
            
            <!--  end widget -->
            <?php echo CHtml::endForm(); ?>
	
    <br class="cb" />
  </div>
  <div class="p20t"><a href="<?php echo $this->createUrl('site/rates'); ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/bt_seemorerates.png"/></a></div>
</div>
<br class="cb" />